#include <stdio.h>
#include <string.h>
#include "m.h"


int main()

{

int z;
char chaine[10];
char chemain[20];
char nom[20];
do
{
printf ("\n **-**-GESTION DES MEDICAMENTS-**-**\n"
        "\n1.ajouter medicament \n"
        "\n2.modifier medicament \n"
        "\n3.rechercher medicament \n"
        "\n4.afficher medicament \n"
        "\n5.quitter\n"
        "\n **-***-**-**-**-**-**-**\n");

printf ("\n donner votre choix \n");
scanf ("%d",&z);
switch(z)
{
case 1:
ajouter_medicament ();
break;
case 2:
scanf("%s",chaine);
modifier_medicament (chaine);
break;
case 3:
printf ("\n donner le nom \n");
scanf("%s",nom);
char chemain[]="chemain.txt";
rechercher_medicament(chemain,nom);
break;
case 4:
afficher_liste ();
break;
case 5:
printf ("quitter");
break;
default:
printf ("\n mauvais choix \n");
}
}
while (z != 5);
printf ("\nFermeture\n");
return 0;
}

